<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style type="text/css">
			/*focus:用于选取获得焦点的表单元素*/
			input:focus{
				background-color: red;
			}
			textarea:focus{
				background-image: url(img/丑女.jpeg);
				background-size: 100% 100%;
			}
		</style>
	</head>
	<body>
		<input type="text" />
		<input type="password" />
		<textarea name="abc" rows="10" cols="20"></textarea>
	</body>
</html>